'''
Created on 25/03/2011

@author: Alejandro
'''

import Clase1

def test_sort_cont (n, cant):
    # help (range)
    # help (random.shuffle)
    # help (time.time
    # help (list.sort)
    x = 0
    promedio = 0
    while(x < cant):
        promedio += Clase1.test_sort(n)
        x += 1
    promedio = promedio / cant
    return promedio

def test_array(n,cant,length):
    x = 0
    lista = range(length)
    while (x < length):
        lista[x] = test_sort_cont(n,cant)
        x+=1
    return lista
print test_array(50,10000,100)